﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="OpenManageUserRoleMapping.ascx.vb" Inherits="WebForm_ManageRoleUserMappingByUser_OpenManageUserRoleMapping" %>
<asp:Panel ID="panel1" runat="server" BackColor="white" BorderWidth="1" Style="cursor: move;
    " Width="600" Height="500">
    <br />
    <div align="center">
        <asp:Label ID="lblTitle" runat="server" Text="<%$ Resources:Title %>" SkinID="title"></asp:Label>
    </div>
    <table width="100%">
        <tr>
            <td>
                <asp:GridView ID="TGridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="RoleID"
                    SkinID="pager" OnPageIndexChanged="TGridView1_PageIndexChanged" 
                    onrowdatabound="TGridView1_RowDataBound">
                    <Columns>
                        <asp:BoundField DataField="RoleDescription" HeaderText="<%$ Resources:RoleName %>"
                            SortExpression="RoleName" />
                        <asp:TemplateField HeaderText="<%$ Resources:belong %>">
                            <ItemTemplate>
                                <asp:CheckBox ID="CheckBox1" runat="server" 
                                    OnCheckedChanged="CheckBox1_CheckedChanged" AutoPostBack="True" />
                                <asp:Label ID="lblMyRoleID" runat="server" Text='<%# Eval("MyRoleID") %>' Visible="false"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
    </table>
    <div align="center">
        <asp:Button ID="btnOK" runat="server" Text="<%$ Resources:OK%>" SkinID="button2" />
        <asp:Button ID="btnCancel" runat="server" Style="display: none" Text="<%$ Resources:Cancel%>" />
    </div>
</asp:Panel>
<asp:Button ID="btnDummy" runat="server" SkinID="null" Style="display: none" />
<ajaxToolkit:ModalPopupExtender ID="mpSearch" runat="server" CancelControlID="btnCancel"
    PopupControlID="panel1" PopupDragHandleControlID="panel1" TargetControlID="btnDummy" />
